package com.open.capacity.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 作者 ftquan E-mail: 464725602@qq.com
 * @version 创建时间：2017年11月12日 上午22:57:51
 * 部门
 */
@Data
public class SysDepartment implements Serializable {

    private static final long serialVersionUID = 4497149010220586111L;
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
    private String parentId;
    private String companyId;
    private String code;
    private String shortName;

    @TableField(exist = false)
    private String codeAndName;

    private String fullName;
    private String nature;
    private String outerPhone;
    private String innerPhone;
    private String fax;
    private String postCode;
    private String email;
    private String manager;
    private String description;
    private Integer sort;
    private Integer status;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss.SSS")
    private Date createTime;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss.SSS")
    private Date updateTime;
}
